// Mod 缩写
let MOD = (domain, id, x) => (x ? `${x}x ` : "") + (id.startsWith('#') ? '#' : "") + domain + ":" + id.replace('#', '')
let CR = (id, x) => MOD("create", id, x)
let CRA = (id, x) => MOD("createaddition", id, x)
let TC = (id, x) => MOD("tconstruct", id, x)
let MC = (id, x) => MOD("minecraft", id, x)
let KJ = (id, x) => MOD("kubejs", id, x)
let FD = (id, x) => MOD("farmersdelight", id, x)
let BOP = (id, x) => MOD("biomesoplenty", id, x)
let SD = (id, x) => MOD("storagedrawers", id, x)
let SP = (id, x) => MOD("supplementaries", id, x)
let F = (id, x) => MOD("forge", id, x)
let OCC = (id, x) => MOD("occultism", id, x)
let MEK = (id, x) => MOD("mekanism", id, x)
let MEKG = (id, x) => MOD("mekanismgenerators", id, x)
let MEKT = (id, x) => MOD("mekanismtools", id, x)
let IF = (id, x) => MOD("industrialforegoing", id, x)
let TAC = (id, x) => MOD("tac", id, x)
let FAA = (id, x) => MOD("forbidden_arcanus", id, x)
let DC = (id, x) => MOD("druidcraft", id, x)
let IAF = (id, x) => MOD("iceandfire", id, x)
let TM = (id, x) => MOD("torchmaster", id, x)
let AR = (id, x) => MOD("doomangelring", id, x)
let TE = (id, x) => MOD("thermal", id, x)
let PW = (id, x) => MOD("powah", id, x)
let RS = (id, x) => MOD("refinedstorage", id, x)
let PZ = (id, x) => MOD("pipez", id, x)
let TLM = (id, x) => MOD("touhou_little_maid", id, x)
let CJ = (id, x) => MOD("conjuring", id, x)
let CO = (id, x) => MOD("crossroads", id, x)
let AE2 = (id, x) => MOD("appliedenergistics2", id, x)
let VC = (id, x) => MOD("vanillacookbook", id, x)
let NP = (id, x) => MOD("neapolitan", id, x)
let DU = (id, x) => MOD("darkutils", id, x)
//





onEvent('recipes', event => {
//移除焦灼合金炉，使用经典Create搅拌机
event.remove({id:TC("smeltery/scorched/alloyer")})
//移除原版烹饪书的巧克力配方
event.remove({id:VC("chocolate")})
//移除原版烹饪书的熟蛋配方(此外也JEI隐藏掉了)
event.remove({output:VC("cooked_egg")})
//移除那不勒斯巧克力条配方
event.remove({id:NP("chocolate/chocolate_bar")})
//那不勒斯巧克力条是压出来的
event.custom({
  "type": "create:pressing",
  "ingredients": [
    {
      "item": CR('bar_of_chocolate')
    }
  ],
  "results": [
    {
      "item": NP('chocolate_bar')
    }
  ]
})
//原版烹饪书巧克力是切出来的
event.custom({
  "type": "farmersdelight:cutting",
  "ingredients": [
    {
      "item": NP('chocolate_bar')
    }
  ],
  "tool": {
    "tag": "forge:tools/knives"
  },
  "result": [
    {
      "item": VC('chocolate'),
      "count": 2
    }
  ]
})


//移除原本的手搓青铜
event.remove({id:CO("base_materials/bronze_alloy_ingot")})
event.remove({id:CO("base_materials/bronze_alloy_nugg")})
event.remove({id:CO("base_materials/copper_ingot_nugg")})
//青铜鸟毛
event.custom({
  "type": "tconstruct:melting",
  "ingredient": {
    "item": "iceandfire:stymphalian_bird_feather"
  },
  "result": {
    "fluid": "tconstruct:molten_bronze",
    "amount": 144
  },
  "temperature": 550,
  "time": 24
}).id('eow:bronze_feather')

//移除原本的万能表配方
event.remove({id:CO("omnimeter")})
event.shaped(Item.of(CO("omnimeter"), 1), 
['BPB', 
 'PEP', 
 'BPB'],
{P: 'crossroads:ingot_bronze', 
 B: 'create:brass_sheet',
 E: 'create:precision_mechanism'}).id('eow:omnimeter')

/*//移除原本的纯石英
event.remove({id:CO("base_materials/pure_quartz")})
event.custom({
  "type": "interactio:item_fluid_transform",
  "inputs": [
    {
      "item":  "appliedenergistics2:purified_nether_quartz_crystal",
      "count": 1
    },
	{
      "item":  "crossroads:dust_salt",
      "count": 2
    }
  ],
  "fluid": {
    "fluid": "crossroads:distilled_water"
  },
  "output": {
    "item": "crossroads:pure_quartz",
    "count": 1
  }
}).id('eow:re_purify')*/

//传送杆机械动力化
event.remove({id:CO("mechanisms/axle_copper")})
event.remove({id:CO("mechanisms/axle_gold")})
event.remove({id:CO("mechanisms/axle_tin")})
event.remove({id:CO("mechanisms/axle_bronze")})
event.remove({id:CO("mechanisms/axle_iron")})
event.remove({id:CO("mechanisms/axle_copshowium")})
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:shaft"
    },
    {
      "fluid": "tconstruct:molten_iron",
      "nbt": {},
      "amount": 288
    }
  ],
  "results": [
   {
    "item": "crossroads:axle",
	"count": 2,
	"nbt": {
	"material": "iron"
		}
  }]})
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:shaft"
    },
    {
      "fluid": "tconstruct:molten_bronze",
      "nbt": {},
      "amount": 288
    }
  ],
  "results": [
   {
    "item": "crossroads:axle",
	"count": 2,
	"nbt": {
	"material": "bronze"
		}
  }]})
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:shaft"
    },
    {
      "fluid": "tconstruct:molten_copper",
      "nbt": {},
      "amount": 288
    }
  ],
  "results": [
   {
    "item": "crossroads:axle",
	"count": 2,
	"nbt": {
	"material": "copper"
		}
  }]})
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:shaft"
    },
    {
      "fluid": "tconstruct:molten_gold",
      "nbt": {},
      "amount": 288
    }
  ],
  "results": [
   {
    "item": "crossroads:axle",
	"count": 2,
	"nbt": {
	"material": "gold"
		}
  }]})
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:shaft"
    },
    {
      "fluid": "tconstruct:molten_tin",
      "nbt": {},
      "amount": 288
    }
  ],
  "results": [
   {
    "item": "crossroads:axle",
	"count": 2,
	"nbt": {
	"material": "tin"
		}
  }]})
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": "create:shaft"
    },
    {
      "fluid": "crossroads:molten_copshowium",
      "nbt": {},
      "amount": 288
    }
  ],
  "results": [
   {
    "item": "crossroads:axle",
	"count": 2,
	"nbt": {
	"material": "copshowium"
		}
  }]})
//移除pipez管道配方另作他用
event.remove({id:PZ("item_pipe")})//建议只能买
event.remove({id:PZ("fluid_pipe")})//至少铜管用够之后吧
event.remove({id:PZ("energy_pipe")})//至少莱顿瓶之后吧

//移除沙子变荧石
event.remove({id:CO("beam_transmute/light_glowstone")})
event.remove({id:CO("beam_transmute/light_sea_lantern")})

//壳子有bug，移除
event.remove({id:CO("detailed_crafter/alchemy/shell_glass")})
event.remove({id:CO("detailed_crafter/alchemy/shell_cryst")})

//移除Crossroads的流体管配方
event.remove({id:CO("fluid_tube")})
event.remove({id:CO("redstone_fluid_tube")})
event.remove({id:CO("rotary_pump")})
event.remove({id:CO("rotary_conv")})

//暂不移除工业坩埚，除非有超高温之用


//异彩化合物配方修改[wip]
//可能需要炼金术

//移除原末影之眼配方
event.remove({id:MC("ender_eye")})
//现在需要更多珍珠和暗影钢
event.recipes.createMechanicalCrafting(Item.of(MC("ender_eye"), 1), [
		'ASBA',
		'ASBA',
		'ASBA',
		'ASBA'
	], {
		A: MC('ender_pearl'),
		S: CR('shadow_steel'),
		B: MC('blaze_powder')
	})
	
event.recipes.createMechanicalCrafting(Item.of(PZ("fluid_pipe"), 8), [
		'AAA',
		'ASA',
		'AAA'
	], {
		A: CR('fluid_pipe'),
		S: KJ('fake_egg')
	})
	
//末影漏斗
event.replaceInput({id:DU("crafting/ender_hopper")},"minecraft:ender_eye", "minecraft:ender_pearl")	
event.replaceInput({id:DU("crafting/ender_hopper")},"minecraft:obsidian", "kubejs:nether_token")	


//修改工业先锋四种机壳
event.remove({id:IF("machine_frame_pity")})
//初级
event.recipes.createSequencedAssembly([
	IF("machine_frame_pity"),
	], CR('brass_casing'), [
		event.recipes.createDeploying(CR('brass_casing'), [CR('brass_casing'), CR('precision_mechanism')]),
		event.recipes.createFilling(CR('brass_casing'), [CR('brass_casing'), Fluid.of(TC("molten_bronze"), 144)]),
		event.recipes.createFilling(CR('brass_casing'), [CR('brass_casing'), Fluid.of(TC("molten_bronze"), 144)])
	]).transitionalItem(CR('brass_casing'))
		.loops(1)
		.id('eow:machine_frame_pity')
event.remove({id:IF("dissolution_chamber/simple_machine_frame")})
event.custom({
  "input": [
    {
      "tag": "forge:plastic"
    },
    {
      "tag": "industrialforegoing:machine_frame/pity"
    },
    {
      "tag": "forge:plastic"
    },
    {
      "item": "undergarden:goo_block"
    },
    {
      "item": "undergarden:goo_block"
    },
    {
      "tag": "forge:ingots/iron"
    },
    {
      "item": "crossroads:solid_chlorine"
    },
    {
      "tag": "forge:ingots/iron"
    }
  ],
  "inputFluid": "{FluidName:\"crossroads:liquid_fat\",Amount:1000}",
  "processingTime": 300,
  "output": {
    "item": "industrialforegoing:machine_frame_simple",
    "count": 1
  },
  "type": "industrialforegoing:dissolution_chamber"
})
event.remove({id:IF("dissolution_chamber/machine_frame_advanced")})
event.remove({id:IF("dissolution_chamber/machine_frame_supreme")})


//木质燃料发电机（完全移除）
event.remove({id:IF("pitiful_generator")})
//
event.remove({id:TC("smeltery/casting/ender/eye")})
//
//自动刷怪机配方修改
event.replaceInput({id:IF("mob_duplicator")},"industrialforegoing:machine_frame_advanced", "industrialforegoing:machine_frame_supreme")
//史诗匕首	
event.replaceInput({id:"epicfight:iron_dagger"},"minecraft:stick", "#minecraft:planks")
event.replaceInput({id:"epicfight:golden_dagger"},"minecraft:stick", "#minecraft:planks")
event.replaceInput({id:"epicfight:diamond_dagger"},"minecraft:stick", "#minecraft:planks")
//测试:女仆祭坛
event.custom({
  "type": "touhou_little_maid:altar_crafting",
  "output": {
    "type": "minecraft:lightning_bolt"
  },
  "power": 0.0,
  "ingredients": [
    {
      "item": "minecraft:gunpowder"
    },
    {
      "item": "minecraft:redstone"
    },
    {
      "item": "kubejs:washed_sand_pile"
    },
    {
      "item": "kubejs:washed_sand_pile"
    },
    {
      "item": "kubejs:washed_sand_pile"
    },
    {
      "item": "minecraft:air"
    }
  ]
}).id('eow:maid_lightning')


event.stonecutting('minecraft:bowl'/* 输出物品 */, '#minecraft:planks'/* 输入物品 */).id('eow:bowl')




})









